package com.xinnet.mms.shopcart.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xinnet.mms.allot.dao.impl.BaseDaoImpl;
import com.xinnet.mms.entity.Customer;
import com.xinnet.mms.entity.ShopCart;
import com.xinnet.mms.shopcart.dao.ShopcartDao;



@Repository("shopcartDao")
public class ShopcartDaoImpl extends BaseDaoImpl<ShopCart, Long> implements ShopcartDao {

	@Override
	public Integer getShopCartCustomerCount(ShopCart customer) {
		return super.getSqlSession().selectOne("shopCart.getShopCartCustomerCount", customer);
	}

	@Override
	public List<ShopCart> queryShopCartCustomer(ShopCart customer) {
		return super.getSqlSession().selectList("shopCart.queryShopCartCustomer", customer);
	}
	
}
